<?php

Class Mpenjualan extends CI_Model
{
	function __construnct()
	{
		$this->load->database();
	}

	function getbarang($term)
	{
		$sql = "select * from produk where nama like '$term%'";
		return $this->db->query($sql);
	}

	function tipetrn()
	{
		$sql = "select * from tipetrn";
		return $this->db->query($sql)->result();
	}
}